import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './assets/css/reset.css'
import 'amfe-flexible'
import 'vant/lib/button/style'
import 'vant/lib/index.css';

Vue.config.productionTip = false

import { 
  Button,
  Icon,
  Empty,
  Dialog,
  Form,
  Checkbox,
  Field,
  Popup,
  Toast,
  Swipe,
  SwipeItem,
  List,
  Lazyload,
  Grid,
  GridItem,
} from 'vant';

Vue.use(Popup);
Vue.use(Button);
Vue.use(Icon);
Vue.use(Empty);
Vue.use(Dialog);
Vue.use(Form);
Vue.use(Checkbox);
Vue.use(Field);
Vue.use(Toast);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(List);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Lazyload);
Vue.use(Lazyload, {
  lazyComponent: true,
});

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
